package com.scabrand.service.impl;

import com.scabrand.dao.HumanMapper;
import com.scabrand.model.Human;
import com.scabrand.service.HumanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yan
 * @date 2025/8/21
 */
@Service
public class HumanServiceImpl implements HumanService {
    private HumanMapper humanMapper;
    @Autowired
    public void setHumanMapper(HumanMapper humanMapper) {
        this.humanMapper = humanMapper;
    }

    @Override
    public Human findHumanById(Integer id) {
        return humanMapper.selectById( id);
    }
}
